package global

type NaCosConf struct {
	Host        string `yaml:"Host"`
	Port        int    `yaml:"Port"`
	DataId      string `yaml:"DataId"`
	Group       string `yaml:"Group"`
	NamespaceId string `yaml:"NamespaceId"`
}
type ZapConf struct {
	LogUrl string `json:"LogUrl" yaml:"LogUrl"`
	Stderr string `json:"Stderr" yaml:"Stderr"`
	Stdout string `json:"Stdout" yaml:"Stdout"`
}
type ConsulConf struct {
	Id             string   `json:"Id" yaml:"Id"`
	Name           string   `json:"Name" yaml:"Name"`
	Tags           []string `json:"Tags" yaml:"Tags"`
	UserConsulName string   `json:"UserConsulName" yaml:"UserConsulName"`
}
type ApiConf struct {
	Host string `json:"Host" yaml:"Host"`
	Port int    `json:"Port" yaml:"Port"`
}
type JwtConf struct {
	SigningKey string `json:"SigningKey" yaml:"SigningKey"`
	ExpiresAt  int64  `json:"ExpiresAt" yaml:"ExpiresAt"`
}
type ClientConf struct {
	ApiConf    *ApiConf    `yaml:"ApiConf" json:"ApiConf"`
	ConsulConf *ConsulConf `json:"ConsulConf" yaml:"ConsulConf"`
	ZapConf    *ZapConf    `json:"ZapConf" yaml:"ZapConf"`
	JwtConf    *JwtConf    `json:"JwtConf" yaml:"JwtConf"`
}
